package com.atwulidun.facade09;

public class Popcorn {
    // 饿汉式
    private static final Popcorn instance = new Popcorn();

    public static Popcorn getInstance() {
        return instance;
    }

    public static void on() {
        System.out.println("Popcorn on");
    }

    public static void off() {
        System.out.println("Popcorn off");
    }

    public static void pop() {
        System.out.println("Popcorn is popping");
    }
}
